package com.example.sunweihao;

/**
 * @description:
 * @author: 孙伟帅
 * @date: 2021/1/29
 */
public class MotionEvent {
    public static final int ACTION_DOWN=            0;
    public static final int ACTION_MOVE=            1;
    public static final int ACTION_UP=              2;
    public static final int ACTION_CANCEL=          3;
    private int actionMasked;
    private int x;
    private int y;

    public int getActionMasked() {
        return actionMasked;
    }

    public void setActionMasked(int actionMasked) {
        this.actionMasked = actionMasked;
    }

    public MotionEvent() {
    }

    public MotionEvent(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public static int getActionDown() {
        return ACTION_DOWN;
    }

    public static int getActionMove() {
        return ACTION_MOVE;
    }

    public static int getActionUp() {
        return ACTION_UP;
    }

    public static int getActionCancel() {
        return ACTION_CANCEL;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
